<template>
  <div>
    <router-link to="/">
      <button>跳转到Home</button>
    </router-link>
    <h4>全局路由守卫</h4>
  </div>
</template>
<script>
export default {
  data () {
    return {};
  },
  created() {
    window.isLogin = false;
  }
}
</script>